<!-- 
20071226 1458: Eric Kao, 將 DWRUtil 改為 dwr.util, 因為使用 dwr 2.0.3 版本<br>
20071226 1418: Eric Kao was created.
-->

<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<script type='text/javascript' src='../dwr/interface/basicUtilJS.js'></script>
<script type='text/javascript' src='../dwr/engine.js'></script>
<script type='text/javascript' src='../dwr/util.js'></script>

<script type="text/javascript" language="javascript">

function updateName()
{
	var name =  dwr.util.getValue( "nameId" );
		
    basicUtilJS.getHelloName( name, loadInfo );
}
function loadInfo( data )
{
    dwr.util.setValue( "replyId", data );
}

</script>

<title>
Hello World
</title>
</head>
<body bgcolor="#ffffff">
<p>簡單的 DWR 測試程式, 使用 basicUtilJS, 其 scope=&quot;request&quot;(由 dwr.xml 做設定),<br> 
	  每個 request, 就會產生一個 BasicUtil instance<br>
	 可由 conslole 的訊息來判斷
</p>
<p>
		<input type="text" id="nameId" /><br>
    <input type="button" value="執行" onclick="updateName()"/><br>
    從 Server 傳回的字串:<span id="replyId"></span>
</p>

</body>
</html>
